﻿using System.Collections.Generic;
using Core;

namespace g_gongjianta
{
    /// <summary>
    /// 感知
    /// </summary>
    public partial class SenseComponent
    {
        private readonly HashSet<ESkillLinkType> hashset = new();

        public bool Contains(ESkillLinkType type)
        {
            return hashset.Contains(type);
        }

        public void Mark(ESkillLinkType type)
        {
            // log.err($"Marking skill {type}");
            hashset.Add(type);
        }

        public void Unmark(ESkillLinkType type)
        {
            // log.err($"Unmark skill {type}");
            hashset.Remove(type);
        }
    }
}